{extend name="base" /}
{block name="main"}
{volist name="res" id="vo"}
<div class="col-md-10">

    <div class="card">
        <div class="card-body">
            <img class="img-fluid" src="__STATIC__/uploads/{$vo.position_pic}" alt="Chania" style="width: 600px;height: 200px;">
            <form action="{:url('zw/updatezw',['position_id'=>$vo.position_id])}" enctype="multipart/form-data"  method="POST">
                <div class="form-group">
                    <label for="text">职位名:</label>
                    <input type="text" class="form-control border-top-0 border-right-0 border-left-0"
                        id="email" value="{$vo.position_name}" name="position_name" required>
                </div>
                <div class="form-group">
                    <label for="text">职位类型:</label>
                    <select  class="custom-select-sm" name="joptype_id">
                        {volist name="res1" id="vo1"}
                        <option value="{$vo1.joptype_id}">{$vo1.joptype_name}</option>
                        {/volist}
                      </select>
                </div>
                <div class="form-group">
                    <label for="text">工作地点:</label>
                    <input type="text" class="form-control border-top-0 border-right-0 border-left-0"
                        id="email" value="{$vo.position_site}" name="position_site" required>
                </div>
                <div class="form-group">
                    <label for="text">薪资:</label>
                    <input type="text" class="form-control border-top-0 border-right-0 border-left-0"
                        id="email" value="{$vo.position_money}" name="position_money" required>
                </div>
                <div class="form-group">
                    <label for="text">简介:</label>
                    <textarea class="form-control" rows="5" id="comment" name="position_info">{$vo.position_info}</textarea>
                </div>
                <div class="form-group">
                    <label for="text">选择海报:</label>
                    <div class="custom-file">
                        <input type="file" class="custom-file-input" id="customFile" name="position_pic">
                        <label class="custom-file-label" for="customFile">选择文件</label>
                    </div>
                </div>
                <button type="submit" class="btn btn-primary">修改</button>
            </form>
        </div>
    </div>
</div>
{/volist}
{/block}